package com.lfz.quality_effect.controller;


import com.lfz.quality_effect.service.TCivilStatisticsService;
import com.lfz.quality_effect.utils.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import static com.lfz.quality_effect.utils.ReturnCode.RC500;

@Api(tags = "民事",value = "TCivilStatisticsController")
@RestController
@RequestMapping("/api/tCivilStatistics")
public class TCivilStatisticsController {


    @Autowired
    private TCivilStatisticsService tCivilStatisticsService;


    @ApiOperation("上传民事收结存表")
    @PostMapping("/uploadCivilStatistics")
    public ResultData uploadCivilStatistics(@RequestParam("file") MultipartFile file){
        tCivilStatisticsService.uploadCivilStatistics(file);
        return ResultData.ok();
    }


//    @ApiOperation("获取未结案件信息")
//    @PostMapping("/getUnsettledCaseInfo")
//    public ResultData getUnsettledCaseInfo(){
//        tCivilStatisticsService.uploadCivilStatistics();
//        return ResultData.ok();
//    }
}
